



// 批量引入
const importAll = function(requireContext) {
  //console.log('context=',requireContext)
  const requireAll = requireContext.keys().map((key) => {
    const name = key.replace(/\.\/(.*)\.\w+$/, '$1');
    //console.log('name=',name, 'key',key, requireContext(key))
    //console.log('default===', requireContext(key).default)
    return { name, value: requireContext(key) };
  })
  return requireAll
}

let routeList = []
try {
  routeList = importAll(require.context('./svg', true, /\.svg$/))
} catch (error) {
  console.log(error);
  routeList = []
}

//console.log("routeList",routeList)
